/*
 * @Description:
 * @Author: dh
 * @Date: 2021-08-19 17:18:39
 * @LastEditors: dh
 * @LastEditTime: 2022-04-18 15:11:08
 */
/*  function myInstanceof(target, origin) {
            if (target.__proto__) {
                if (target.__proto__ === origin.prototype) {
                    return true
                } else {
                    return myInstanceof(target.__proto__, origin)
                }
            } else {
                return false
            }

        } */

function myInstanceof(target, origin) {
	while (target) {
		if (target.__proto__ === origin.prototype) {
			return true
		}
		target = target.__proto__
	}
	return false
}
